package net.ericaro.neojavagen.expressions ;
import net.ericaro.neojavagen.classes.Dims;
import net.ericaro.neojavagen.expressions.UnaryExpression;
import net.ericaro.neojavagen.types.PrimitiveType ;

/**
* *<pre> PrimitiveCastExpression :
    ( PrimitiveType Dims? ) UnaryExpression
</pre>
*/
public class PrimitiveCastExpression   {

PrimitiveType primitivetype;
Dims dims;
UnaryExpression unaryexpression ;

public PrimitiveCastExpression( PrimitiveType primitivetype, Dims dims, UnaryExpression unaryexpression ){
	this.primitivetype = primitivetype; this.dims = dims; this.unaryexpression = unaryexpression ;
	}public PrimitiveCastExpression( PrimitiveType primitivetype, UnaryExpression unaryexpression ){
this.primitivetype = primitivetype; this.unaryexpression = unaryexpression ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "(" ).append(" ");
stringbuilder.append( this.primitivetype ).append(" ");
if (this.dims !=null ) stringbuilder.append( this.dims ).append(" ");
stringbuilder.append( ")" ).append(" ");
stringbuilder.append( this.unaryexpression ).append(" ") ;
	return stringbuilder.toString();
}

}
